View Javadoc

1   /*
2   jMimeMagic(TM) is a Java library for determining the content type of files or
3   streams.
4   
5   Copyright (C) 2004 David Castro
6   
7   This library is free software; you can redistribute it and/or
8   modify it under the terms of the GNU Lesser General Public
9   License as published by the Free Software Foundation; either
10  version 2.1 of the License, or (at your option) any later version.
11  
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  Lesser General Public License for more details.
16  
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library; if not, write to the Free Software
19  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  
21  For more information, please email arimus@users.sourceforge.net
22  */
23  package net.sf.jmimemagic;
24  
25  /***
26   * Basic JMimeMagic parse exception. This is simply a holder to identify a parsing problem. It
27   * should be extended to identify more specific issues.
28   *
29   * @author $Author: arimus $
30   * @version $Revision: 1.1 $
31   */
32  public class MagicParseException extends Exception
33  {
34      /***
35       * Default constructor
36       */
37      public MagicParseException()
38      {
39          super();
40      }
41  
42      /***
43       * Create exception with error message
44       * 
45       * @param message The error message for this exception
46       */
47      public MagicParseException(String message)
48      {
49          super(message);
50      }
51  
52      /***
53       * Create exception based on an existing Throwable
54       * 
55       * @param cause The throwable on which we'll base this exception
56       */
57      public MagicParseException(Throwable cause)
58      {
59          super(cause);
60      }
61  
62      /***
63       * Create an exception with custom message and throwable info
64       * 
65       * @param message The message
66       * @param cause The target Throwable
67       */
68      public MagicParseException(String message, Throwable cause)
69      {
70          super(message, cause);
71      }
72  }